/**
 * 生成随机布尔值

   使用Math.random（）生成随机数并检查它是否大于或等于0.5
 */

const randomBoolean = () => Math.random() >= 0.5;

console.log(randomBoolean());
console.log(randomBoolean());
console.log(randomBoolean());
console.log(randomBoolean());
console.log(randomBoolean());
console.log(randomBoolean());
console.log(randomBoolean());
console.log(randomBoolean());
